
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
last-commit-log
Advanced tools
Node.js module to get the last git commit information - mostly to be used by CI/CD and building phase
Node.js module to get the last git commit information - mostly to be used by CI/CD and building phase.
const LCL = require('last-commit-log');
const lcl = new LCL(); // or `new LCL(dir)` dir is process.cwd() by default
lcl
.getLastCommit()
.then(commit => console.log(commit));
commit information is an object like this:
{
"gitTag": "2.0.0",
"gitBranch": "master",
"gitRemote": "git@github.com:group/repo.git", // .git http or ssh
"gitUrl": "http://github.com/group/repo", // url only
"shortHash": "42dc921",
"hash": "42dc921d25a3e7e1607302d2acfdc3fd991c0c01",
"subject": "chore: add lock",
"sanitizedSubject": "chore-add-lock",
"body": "",
"committer": {
"date": "1515240839",
"relativeDate": "2 hours ago",
"name": "Committer Fred",
"email": "fred@fred.com"
},
"author": {
"date": "1515240839",
"relativeDate": "2 hours ago",
"name": "Author Baz",
"email": "baz@baz.com"
}
}
inspired by git-last-commit and fixed the parsing issue.
zhangyuheng | xudafeng |
---|
This project follows the git-contributor spec, auto upated at Tue Aug 14 2018 13:43:42 GMT+0800
.
The MIT License (MIT)
FAQs
Node.js module to get the last git commit information - mostly to be used by CI/CD and building phase
The npm package last-commit-log receives a total of 18,507 weekly downloads. As such, last-commit-log popularity was classified as popular.
We found that last-commit-log demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.